<%-- 
    Document   : ProsesEdit2
    Created on : Nov 23, 2012, 12:48:09 AM
    Author     : Yo
--%>

<%@page import="bean.ProsesBean"%>
<%@page import="bean.ProsesFormEditSekolah"%>
<%@page import="Data.Sekolah"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title>Edit Profil</title>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link href="http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" rel="stylesheet" type="text/css" />
        <link href="default.css" rel="stylesheet" type="text/css" media="all" />
    </head>
    <body>
        <%
            String username = (String) session.getAttribute("user");
            if (username == null) {
                username = "";
            }
        %>
        <div id="header" class="container">
            <div id="logo">
                <h1><a href="#">Pendafataran SMA Negeri Online</a></h1>
                <p>Yogyakarta</a></p>
            </div>
        </div>
        <div id="menu" class="container">
            <ul>
                <li><a href="FormHomeSekolah.jsp" accesskey="1" title="">Home Sekolah</a></li>
                <li><a href="FormProfilSekolah.jsp" accesskey="1" title="">Profil</a></li>
                <li   class="current_page_item"><a href="FormSeleksiSekolah.jsp" accesskey="2" title="">Seleksi</a></li>
                <li ><a href="FormDaftarDiterima.jsp" accesskey="3" title="">Daftar diterima</a></li>
                <li><a href="#" accesskey="4" title=""></a></li>
                <li><a href="#" accesskey="4" title=""></a></li>
              
               
                <li><a href="#" accesskey="4" title="">login as </a></li>
                <li><a href="#" accesskey="4" title=""><%=username%></a></li>
                <li><a href="FormUtama.jsp" accesskey="5" title="">logout</a></li>
            </ul>
        </div>

        <div id="page" class="container">

            <div id="content">
        <br><br>
        <br><br>


        <table border="0" cellspacing="0" cellpadding="0" width="800">
            <tr width="200" valign="top" align="left">
                <td width="136" height="43"></td>
                <td width="180"></td>
            </tr>
            <tr valign="top" align="left">
                <td></td>
                <td width="600" id="Text3" class="TextObject">
                    <h3>Data Sekolah Anda Telah Terupdate</h3>
                    <br><br>
                    <br><br>
                    <h4><a href="FormProfilSekolah.jsp">back profil sekolah</a></h4>

                </td>
            </tr>

        </table>

    <td>

        <%
            String nama = request.getParameter("namaSekolah");
            String almt = request.getParameter("alamatSekolah");
            String email = request.getParameter("emailsekolah");
            String akreditasi = request.getParameter("akreditasiSekolah");
            String quota = request.getParameter("quota");

            Sekolah update = new Sekolah();
            update.setNamaSekolah(nama);
            update.setAlamat(almt);
            update.setEmail(email);
            update.setQuota(quota);

            ProsesBean bn = new ProsesBean();
            bn.UpdateSekolah(update, username);
        %>
    </td>
</body>
</html>
